import request from '@/utils/request'

// 不同活动状态下的活动信息
export function getActivityStatus() {
    return request({
        url: '/activity/status/info',
        method: 'get',
    })
}

// 根据活动id查询活动报名审批情况
export function getRegistrationApproval(activityId) {
    return request({
        url: `/activity/registrationApproval/${activityId}`,
        method: 'post',
    })
}
// 管理员对报名人员进行审批
export function getActivityApproval(activityId, data, statusType) {
    return request({
        url: `/activity/activityApproval/${activityId}/${statusType}`,
        method: 'post',
        data
    })
}